package com.fzhucc.modules.task

import com.fzhucc.modules.appletBanner.repository.AppletBannerRepository
import org.slf4j.LoggerFactory
import org.springframework.scheduling.annotation.Scheduled
import org.springframework.stereotype.Component
import org.springframework.transaction.annotation.Transactional

@Component
class TimerTask(
    private val appletBannerRepository: AppletBannerRepository,
) {

    companion object {
        private val logger = LoggerFactory.getLogger(TimerTask::class.java)
    }

    //每半小时执行一次
    /*@Scheduled(cron = "0 0/30 * * * ?")
    @Transactional
    fun selectKeepLive() {
        appletBannerRepository.findAll()
    }*/



}